package com.os.ordersystem.mapper;

import com.os.ordersystem.bean.User;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Map;

@Mapper
public interface UserMapper {
    //注册
    public int register(User user);
    //登录
    public User login(String name,String password);
    //更新头像
    int updateAvatar(String pic, Integer id);

    long getTotal(String name);

    List<User> queryUserList(Map<String, Object> map);

    int updateUserInfo(User user);

    int deleteUserInfo(Integer id);

    User selectUserInfo(Integer userId);
}
